<template>
  <div class="centreOneDiv">
    <div class="box" v-for="(item, index) in list" :key="index">
      <div :style="{ color: item.color }" class="boxtop">{{ item.title }}</div>
      <div class="boxfoot">
        <p class="p1">{{ item.garden }}</p>
        <p class="p1">.</p>
        <p class="p1">{{ item.angle }}</p>
        <p class="p2">元/KWh</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          title: "今日电价",
          garden: "3",
          angle: "2",
          color: "#66ffff",
        },
        {
          title: "实时电价",
          garden: "3",
          angle: "2",
          color: "#66ffff",
        },
        {
          title: "峰谷电价",
          garden: "3",
          angle: "2",
          color: "#66ffff",
        },
        {
          title: "市场出清价格",
          garden: "3",
          angle: "2",
          color: "#fb6603",
        },
        {
          title: "边际价格",
          garden: "3",
          angle: "2",
          color: "#fb6603",
        },
        {
          title: "节点电阶",
          garden: "3",
          angle: "2",
          color: "#fb6603",
        },
        {
          title: "最高出清价格",
          garden: "3",
          angle: "2",
          color: "#33cc66",
        },
        {
          title: "最低出清价格",
          garden: "3",
          angle: "2",
          color: "#33cc66",
        },
        {
          title: "目前店家均值",
          garden: "3",
          angle: "2",
          color: "#33cc66",
        },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.centreOneDiv {
  width: 100%;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  .box {
    width: 310px;
    height: 174px;
    background: url("@/assets/images/centre/cen1.png") no-repeat;
    .boxtop {
      width: 168px;
      height: 32px;
      color: #66ffff;
      font-size: 28px;
      margin-left: 30px;
      margin-top: 29px;
    }
    .boxfoot {
      height: 50px;
      width: 219px;
      display: flex;
      align-items: center;
      margin-left: 52px;
      margin-top: 29px;
      .p1 {
        text-align: center;
        width: 39px;
        height: 48px;
        background: url("@/assets/images/centre/cen2.png") no-repeat;
        font-size: 25px;
        color: #c0faff;
        font-weight: 500;
        line-height: 48px;
      }
      .p2 {
        text-align: center;
      }
    }
  }
}
</style>